/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package podologia.beansDB;

import java.io.Serializable;
import java.util.Collection;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 *
 * @author Hernan
 */
@Entity
@Table(name = "examparam")
@NamedQueries({@NamedQuery(name = "Examparam.findByIdExamen", query = "SELECT e FROM Examparam e WHERE e.idExamen = :idExamen"), @NamedQuery(name = "Examparam.findByAnchoDer", query = "SELECT e FROM Examparam e WHERE e.anchoDer = :anchoDer"), @NamedQuery(name = "Examparam.findByAnchoIzq", query = "SELECT e FROM Examparam e WHERE e.anchoIzq = :anchoIzq"), @NamedQuery(name = "Examparam.findByItsmoDer", query = "SELECT e FROM Examparam e WHERE e.itsmoDer = :itsmoDer"), @NamedQuery(name = "Examparam.findByItsmoIzq", query = "SELECT e FROM Examparam e WHERE e.itsmoIzq = :itsmoIzq"), @NamedQuery(name = "Examparam.findByLargoDer", query = "SELECT e FROM Examparam e WHERE e.largoDer = :largoDer"), @NamedQuery(name = "Examparam.findByLargoIzq", query = "SELECT e FROM Examparam e WHERE e.largoIzq = :largoIzq"), @NamedQuery(name = "Examparam.findByBisectrizDer", query = "SELECT e FROM Examparam e WHERE e.bisectrizDer = :bisectrizDer"), @NamedQuery(name = "Examparam.findByBisectrizIzq", query = "SELECT e FROM Examparam e WHERE e.bisectrizIzq = :bisectrizIzq")})
public class Examparam implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy=GenerationType.SEQUENCE)
    @Column(name = "idExamen", nullable = false)
    private Integer idExamen;
    @Column(name = "anchoDer")
    private Float anchoDer;
    @Column(name = "anchoIzq")
    private Float anchoIzq;
    @Column(name = "itsmoDer")
    private Float itsmoDer;
    @Column(name = "itsmoIzq")
    private Float itsmoIzq;
    @Column(name = "largoDer")
    private Float largoDer;
    @Column(name = "largoIzq")
    private Float largoIzq;
    @Column(name = "bisectrizDer")
    private Float bisectrizDer;
    @Column(name = "bisectrizIzq")
    private Float bisectrizIzq;
    @OneToMany(mappedBy = "idExaParam")
    private Collection<Atencion> atencionCollection;

    public Examparam() {
    }

    public Examparam(Integer idExamen) {
        this.idExamen = idExamen;
    }

    public Integer getIdExamen() {
        return idExamen;
    }

    public void setIdExamen(Integer idExamen) {
        this.idExamen = idExamen;
    }

    public Float getAnchoDer() {
        return anchoDer;
    }

    public void setAnchoDer(Float anchoDer) {
        this.anchoDer = anchoDer;
    }

    public Float getAnchoIzq() {
        return anchoIzq;
    }

    public void setAnchoIzq(Float anchoIzq) {
        this.anchoIzq = anchoIzq;
    }

    public Float getItsmoDer() {
        return itsmoDer;
    }

    public void setItsmoDer(Float itsmoDer) {
        this.itsmoDer = itsmoDer;
    }

    public Float getItsmoIzq() {
        return itsmoIzq;
    }

    public void setItsmoIzq(Float itsmoIzq) {
        this.itsmoIzq = itsmoIzq;
    }

    public Float getLargoDer() {
        return largoDer;
    }

    public void setLargoDer(Float largoDer) {
        this.largoDer = largoDer;
    }

    public Float getLargoIzq() {
        return largoIzq;
    }

    public void setLargoIzq(Float largoIzq) {
        this.largoIzq = largoIzq;
    }

    public Float getBisectrizDer() {
        return bisectrizDer;
    }

    public void setBisectrizDer(Float bisectrizDer) {
        this.bisectrizDer = bisectrizDer;
    }

    public Float getBisectrizIzq() {
        return bisectrizIzq;
    }

    public void setBisectrizIzq(Float bisectrizIzq) {
        this.bisectrizIzq = bisectrizIzq;
    }

    public Collection<Atencion> getAtencionCollection() {
        return atencionCollection;
    }

    public void setAtencionCollection(Collection<Atencion> atencionCollection) {
        this.atencionCollection = atencionCollection;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idExamen != null ? idExamen.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Examparam)) {
            return false;
        }
        Examparam other = (Examparam) object;
        if ((this.idExamen == null && other.idExamen != null) || (this.idExamen != null && !this.idExamen.equals(other.idExamen))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "podologia.beansDB.Examparam[idExamen=" + idExamen + "]";
    }

}
